


class My_assert:
    def Myassert(self,my_code,re_code):
        print(my_code)
        http_code = my_code.get("http_code")
        body_code = my_code.get("body_code", {}).get("code") if isinstance(my_code.get("body_code"), dict) else None
        if (http_code == 200 and body_code == re_code) or (http_code != 200 and http_code == re_code):
            assert True
        else:
            print("测试失败")
            assert False